﻿function test(n){alert(n+typeof window.foop)}var foo=typeof bar;(function(n){alert(typeof n.foobarbatack)})(window);with(window.ackbar)alert(typeof window.qwerty)